import { request } from "./request";

export function getCategory() {
  return request({
    url: "/category"
  })
}

export function getSubcategory(maitKey) {  //根据左侧导航的数据
  return request({
    url: "/subcategory",
    params: {
      maitKey
    }
  })
}

export function getCategorygoods(miniWallkey, type) {   //得到category下面的goods
  return request({
    url: "/subcategory/detail",
    params: {
      miniWallkey,
      type
    }
  })
}